package com.bsoft.gol.hcs.specialist.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @author hekr22831
 * @description
 * @date 2022/5/25.21:01
 */
@Entity(name = "FollowUpPathRouteExpland")
@Table(name = "follow_up_path_route_expland")
public class FollowUpPathRouteExplandEntity {
    /**扩展表id*/
    private long expandId;
    /**随访计划Id*/
    private Long followPlanId;
    /**随访表单id或者健康宣教id*/
    private String formEducationId;
    /**随访表单名或则健康宣教名*/
    private String formEducationName;
    /**1表示随访表单2表示健康宣教3推荐科室4检验5检查6处置7其他*/
    private String contentType;
    /**院后随访Id*/
    private long fusPathRouteId;

    private Byte deptType;
    private String parentDeptCode;
    private String parentDeptName;
    private String deptCode;
    private String deptName;
    private String indexClassifyId;
    private String indexClassifyName;
    private String businessId;
    private String businessName;
    private String projectDetails;
    private String followUpDetail;

    @Id
    @Column(name = "expand_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public long getExpandId() {
        return expandId;
    }

    public void setExpandId(long expandId) {
        this.expandId = expandId;
    }

    @Basic
    @Column(name = "follow_plan_id")
    public Long getFollowPlanId() {
        return followPlanId;
    }

    public void setFollowPlanId(Long followPlanId) {
        this.followPlanId = followPlanId;
    }

    @Basic
    @Column(name = "form_education_id")
    public String getFormEducationId() {
        return formEducationId;
    }

    public void setFormEducationId(String formEducationId) {
        this.formEducationId = formEducationId;
    }

    @Basic
    @Column(name = "form_education_name")
    public String getFormEducationName() {
        return formEducationName;
    }

    public void setFormEducationName(String formEducationName) {
        this.formEducationName = formEducationName;
    }

    @Basic
    @Column(name = "content_type")
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    @Basic
    @Column(name = "fus_path_route_id")
    public long getFusPathRouteId() {
        return fusPathRouteId;
    }

    public void setFusPathRouteId(long fusPathRouteId) {
        this.fusPathRouteId = fusPathRouteId;
    }

    @Basic
    @Column(name = "dept_type")
    public Byte getDeptType() {
        return deptType;
    }

    public void setDeptType(Byte deptType) {
        this.deptType = deptType;
    }
    @Basic
    @Column(name = "parent_dept_code")
    public String getParentDeptCode() {
        return parentDeptCode;
    }

    public void setParentDeptCode(String parentDeptCode) {
        this.parentDeptCode = parentDeptCode;
    }
    @Basic
    @Column(name = "parent_dept_name")
    public String getParentDeptName() {
        return parentDeptName;
    }

    public void setParentDeptName(String parentDeptName) {
        this.parentDeptName = parentDeptName;
    }
    @Basic
    @Column(name = "dept_code")
    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }
    @Basic
    @Column(name = "dept_name")
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Basic
    @Column(name = "index_classify_id")
    public String getIndexClassifyId() {
        return indexClassifyId;
    }

    public void setIndexClassifyId(String indexClassifyId) {
        this.indexClassifyId = indexClassifyId;
    }

    @Basic
    @Column(name = "index_classify_name")
    public String getIndexClassifyName() {
        return indexClassifyName;
    }

    public void setIndexClassifyName(String indexClassifyName) {
        this.indexClassifyName = indexClassifyName;
    }

    @Basic
    @Column(name = "business_id")
    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    @Basic
    @Column(name = "business_name")
    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    @Basic
    @Column(name = "project_details")
    public String getProjectDetails() {
        return projectDetails;
    }

    public void setProjectDetails(String projectDetails) {
        this.projectDetails = projectDetails;
    }

    @Basic
    @Column(name = "follow_up_detail")
    public String getFollowUpDetail() {
        return followUpDetail;
    }

    public void setFollowUpDetail(String followUpDetail) {
        this.followUpDetail = followUpDetail;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FollowUpPathRouteExplandEntity that = (FollowUpPathRouteExplandEntity) o;
        return expandId == that.expandId &&
                fusPathRouteId == that.fusPathRouteId &&
                Objects.equals(followPlanId, that.followPlanId) &&
                Objects.equals(formEducationId, that.formEducationId) &&
                Objects.equals(formEducationName, that.formEducationName) &&
                Objects.equals(contentType, that.contentType) &&
                Objects.equals(deptType, that.deptType) &&
                Objects.equals(parentDeptCode, that.parentDeptCode) &&
                Objects.equals(parentDeptName, that.parentDeptName) &&
                Objects.equals(deptCode, that.deptCode) &&
                Objects.equals(deptName, that.deptName) &&
                Objects.equals(indexClassifyId, that.indexClassifyId) &&
                Objects.equals(indexClassifyName, that.indexClassifyName) &&
                Objects.equals(businessId, that.businessId) &&
                Objects.equals(businessName, that.businessName) &&
                Objects.equals(projectDetails, that.projectDetails) &&
                Objects.equals(followUpDetail, that.followUpDetail);
    }

    @Override
    public int hashCode() {
        return Objects.hash(expandId, followPlanId, formEducationId, formEducationName, contentType, fusPathRouteId, deptType, parentDeptCode, parentDeptName, deptCode, deptName, indexClassifyId, indexClassifyName, businessId, businessName, projectDetails, followUpDetail);
    }
}
